﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChenShiBao.EventBus
{
    public interface IEventBus
    {
        //发布
        void Publish(string eventName, object? eventData);

        //订阅
        void Subscribe(string eventName, Type handlerType);

        //取消订阅
        void Unsubscribe(string eventName, Type handlerType);
    }
}
